<html><head></head><body style="overflow:hidden;">
<img src="Latest.png" border="0" usemap="#Map" id="image1"> 
<map name="Map">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Oceania" shape="poly" coords="557,202,562,203,555,216,540,236,535,267,532,287,568,303,615,311,664,312,686,288,700,246,709,212,703,187,615,180,570,181,565,188,564,195,559,199" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Africa" shape="poly" coords="284,107,255,130,255,147,257,164,278,190,295,222,312,250,319,277,342,292,387,293,420,279,440,246,440,224,430,170,425,156,407,158,396,140,379,110,345,103,330,100,313,103,295,105" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="US" shape="poly" coords="66,105,92,114,104,115,110,118,118,125,122,130,148,130,163,135,174,138,211,126,236,97,236,57,224,19,225,17,251,3,180,3,135,11,100,13,65,18,37,30,28,50,39,78" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Brazil" shape="poly" coords="211,179,200,185,193,185,193,177,187,180,183,179,181,186,174,186,174,194,165,200,165,207,170,215,179,211,183,218,191,221,195,226,199,230,198,236,204,245,210,251,202,257,209,262,213,266,218,263,221,255,222,249,228,244,233,243,237,238,237,229,237,221,237,216,245,209,246,201,236,193,227,193,220,193,213,187,210,182" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Mexico" shape="poly" coords="124,153,135,147,140,143,141,136,131,142,120,142,119,127,104,116,86,112,84,126,84,133,97,144,109,150" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Latin America" shape="poly" coords="121,155,132,149,139,143,146,147,158,149,171,155,186,160,209,170,212,179,203,184,193,184,192,176,189,180,183,179,179,185,171,183,174,191,165,201,169,214,178,212,183,218,190,223,199,229,198,237,204,247,207,251,202,257,213,267,224,322,182,322,170,276,166,238,142,204,150,177" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Russia" shape="poly" coords="366,53,378,67,390,73,389,83,393,89,408,89,412,95,411,84,412,79,409,70,419,71,430,71,432,66,443,64,462,68,479,75,498,72,518,72,535,74,539,66,551,72,561,77,567,87,578,83,593,77,624,52,624,27,551,2,443,6,389,12,368,18,367,30,368,40,370,44" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="India" shape="poly" coords="468,105,463,109,465,115,460,126,457,136,460,144,478,172,485,155,490,145,500,136,498,130,501,131,508,135,510,128,514,125,507,121,502,122,498,124,494,125,489,126,483,126,477,121,475,115,474,108" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="China" shape="poly" coords="477,75,469,84,467,92,460,95,467,105,473,113,478,120,481,117,488,119,494,121,497,124,507,122,512,124,517,130,518,137,528,134,542,137,558,137,560,122,553,106,549,97,558,94,564,87,564,80,555,75,542,66,535,68,531,73,533,75,537,78,529,83,522,88,507,88,496,85,487,80,479,77" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Japan" shape="poly" coords="585,82,580,87,581,95,578,102,572,110,576,115,589,113,594,101,595,86" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="North Korea" shape="poly" coords="557,94,563,87,566,90,566,97,558,99" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Asia" shape="poly" coords="566,97,549,97,553,110,557,125,557,136,541,136,518,136,511,129,506,134,498,124,481,120,485,124,494,126,500,133,490,143,483,158,478,169,461,146,457,133,463,109,461,94,468,83,476,76,490,82,506,87,520,87,528,81,526,74,503,74,485,74,472,74,455,65,437,65,428,68,409,69,411,80,424,99,436,103,439,112,442,121,442,128,443,134,496,191,532,210,553,212,559,207,560,196,566,183,573,178,584,173,591,163,591,150,583,136,571,125,570,110,574,101" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Iran" shape="poly" coords="404,101,417,120,426,126,443,129,439,110,432,102,421,102,409,95" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Britain" shape="poly" coords="317,52,324,65,315,71,309,71,313,61,312,54" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Europe" shape="poly" coords="227,20,238,52,280,102,343,102,385,110,390,102,403,102,411,93,410,90,395,90,387,80,387,73,372,59,366,51,371,45,368,30,368,18,367,8,339,8,323,9,317,52,322,61,316,72,309,70,309,59,313,55,318,52,322,9,309,5,280,5,257,5,244,6,226,16" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Iraq" shape="poly" coords="399,102,399,109,394,112,399,117,411,120,417,120,410,110,405,103" href="#">
  <area onmouseover="return mover(this);" onmouseout="return mout(this);" id="Middle East"  shape="poly" coords="397,102,386,104,382,110,379,109,407,157,423,157,435,146,438,134,436,129,416,121,404,119,394,114,397,110" href="#">
</map>
<iframe name="loader" id="loader" style="visibility:hidden; display:none;"></iframe><br>
<span id="info">Loading...</span>
<script>
var data=null;
function $(a) { return document.getElementById(a); };

function refresh() {
	reloadData();
	$('image1').src = "Latest.png?nocache=" + new Date().getTime();

}

function loadIframe(iframeName, url) {
  if ( window.frames[iframeName] ) {
    window.frames[iframeName].location = url;   
    return false;
  }
  else return true;
}


function reloadData() {
	//$('loader').document.location = ('data.htm?tick=' + new Date().getTime());
	loadIframe('loader', 'http://www.nofoodhere.com/newstrends/data.js?tick=' + new Date().getTime());
}

function onDataUpdate(list) {
	//alert(list);
	data = list;
}

function getScore(id) {
	if (!data) {
		return null;
	}
	
	for (i=0; i<data.length; i++) {
		entry = data[i];
		if (entry[0] == id){
			 return data[i];
		}
	}
	return null;
}

var ranges = [ 		[0.00, 0.00, "No Bad News"],
					[-0.05, 0.05, "Fairly Neutral News"],
					[-0.4, 0.0, "Slightly Bad News"],
					[0.0, 0.4, "Slightly Good News"],
					[-2.0, 0.0, "Bad News"],
					[0.0, 2.0, "Good News"],
					[-4.0, 0.0, "Really Bad News"],
					[0.0, 4.0, "Really Good News"]
					[-100.0, 0.0, "Amazingly Bad News"],
					[0.0, 100.0, "Amazingly Good News"]
			];

function getScoreMeaning(n) {
	for (var i=0; i<ranges.length; i++) {
		if (n >= ranges[i][0] && n <= ranges[i][1]) {
			return ranges[i][2];
		}
	}
	return 'unknown classification';

}

function mover(o) {
	s = getScore(o.id);
	if (s == null) {
		$('info').innerHTML = 'no data available';
		return;
	}
	var score = s[1];
	var docs = s[2];s
	var si = Math.round((score/docs)*100)/100;
	inf = getScoreMeaning(score);
	
	$('info').innerHTML = o.id + ': ' + score + ", News Items Parsed: " + docs +', Interpretation: ' + inf;
	return true;
}

function mout(o) {
	$('info').innerHTML = '';
	return true;
}


setInterval('refresh();', 1000*60*5);
refresh();
</script>

</body></html>

